﻿using System.Runtime.Serialization;
using System.ServiceModel;

namespace ProtobufNetShared
{
    [ServiceContract]
    public interface IGreeterService
    {
        [OperationContract]
        Task<HelloReply> SayHelloAsync(HelloRequest request);
    }

    [DataContract]
    public class HelloRequest
    {
        [DataMember(Order = 1)]
        public string Name { get; set; }
    }

    [DataContract]
    public class HelloReply 
    {
        [DataMember(Order = 1)]
        public string Message { get; set; }
    }
}
